package com.oa.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("加班申请表")
@TableName("admin_overtime_apply")
@Data
public class OvertimeApply extends Model<OvertimeApply> {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty("申请人")
    private String userId;

    @ApiModelProperty("加班原因")
    private String overtimeReason;

    @ApiModelProperty("加班开始时间")
    private Date startTime;

    @ApiModelProperty("加班结束时间")
    private Date endTime;

    @ApiModelProperty("备注")
    private String remark;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
